package com.ypc.user.service;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import com.netflix.hystrix.contrib.javanica.annotation.HystrixProperty;
import com.sun.org.apache.xpath.internal.operations.Bool;
import com.ypc.user.dao.UserMapper;
import com.ypc.user.model.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    UserMapper userMapper;

    public Boolean isUserAvailable(Long uid){
        if (userMapper.isUserAvailable(uid)!=null){
            return true;
        }
        return false;
    }

}
